<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import="net.tanesha.recaptcha.ReCaptcha" %>
<%@ page import="net.tanesha.recaptcha.ReCaptchaFactory" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Weber</title>        
        <style>
            a {color:#404042;text-decoration:none;}      /* unvisited link */
            a:visited {color:#404042;}  /* visited link */
            a:hover {color:#404042;}  /* mouse over link */
            a:active {color:#404042;}  /* selected link */
        </style>        
        <script type="text/javascript" src="${model.props.appPath}/js/jquery/jquery-1.8.3.min.js"></script>
                        
    </head>

    <body style="text-align: center; background-color: #FAFAFA; color: #404042; font-family: Century Gothic, Calibri, Verdana; padding: 0px; margin: 0px;">                

        <div style="margin-top: 0px; background-color: white;">

            <%@include file="header.jsp" %>

            <div style="width: 100%; text-align: center; font-family: Century Gothic, Calibri, Verdana; color: #404042; background-color: white; background: url('${model.props.appPath}/img/content-bg-short.jpg'); background-repeat: repeat-x; display: block; position: relative; top: -2px;">

                <div style="width: 900px; margin: 0 auto; text-align: center; border: 0px solid ">

                    <br>
                    <br>
                    
                    <form style="background-color: #fafafa; font-size: 15px;">
                        <fieldset>
                            <legend>Add Email Invitee</legend>
                            <table style="font-size: 15px;" cellpadding="5" cellspacing="5">
                                <tr>
                                    <td>List Name:</td>
                                    <td>
                                        <input type="text" name="listName" style="padding:5px; width: 300px;" value="default"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Email:</td>
                                    <td>
                                        <input type="text" name="email" style="padding:5px; width: 300px;"/>                                    
                                    </td>
                                </tr>
                                <tr>
                                    <td>Emails:</td>
                                    <td>
                                        <textarea name="multiEmail" style="padding:5px; width: 300px; height: 200px;">

                                        </textarea>                                   
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <input type="hidden" value="3" name="a"/>
                                        <input type="hidden" value="1" name="s"/>
                                        <input type="submit" value=" Add Weber " />
                                    </td>
                                </tr>
                            </table>
                        </fieldset>                        
                    </form>
                    
                    <br>
                    
                    <h1>Webers</h1>
                    
                    <table id="table-invites" border="1" cellpadding="5" cellspacing="5" style="width:100%; border-collapse: collapse; font-size: 13px;">
                        <tr>
                            <th></th>
                            <th>List Name</th>
                            <th>Email</th>
                            <th></th>
                        </tr>
                        <c:set var="i" value="0"/>
                        <c:forEach items="${model.webers}" var="weber">
                            <c:set var="i" value="${i+1}"/>
                            <tr>
                                <td align="center">${i}</td>
                                <td align="center">${weber.listName}</td>
                                <td align="center">${weber.email}</td>
                                <td> 
                                    <form>
                                        <a href="${model.props.appPath}/weber.htm?a=5&email=${weber.email}&listName=${weber.listName}"><input type="button" value=" Delete "/></a>
                                    </form>
                                </td>
                            </tr>
                        </c:forEach>
                    </table>

                </div>

                <br><br>                

            </div>

            <div>
                <img src="${model.props.appPath}/img/footer-foot.jpg" style="border: 0px solid black; display: block; width: 100%;" />
            </div>

        </div>

    </body>

</html>
